package cn.ym.mall.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 评论
 */
public class Comment implements Serializable {
    /** 评论id */
    private Integer cid;
    /** 用户id */
    private Integer uid;
    /** 商品id */
    private Integer gid;
    /** 内容 */
    private String ccontent;
    /** 评论时间 */
    private LocalDateTime ctime;

    public Comment(){}

    public Comment(Integer cid, Integer uid, Integer gid, String ccontent, LocalDateTime ctime) {
        this.cid = cid;
        this.uid = uid;
        this.gid = gid;
        this.ccontent = ccontent;
        this.ctime = ctime;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getCcontent() {
        return ccontent;
    }

    public void setCcontent(String ccontent) {
        this.ccontent = ccontent;
    }

    public LocalDateTime getCtime() {
        return ctime;
    }

    public void setCtime(LocalDateTime ctime) {
        this.ctime = ctime;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "cid='" + cid + '\'' +
                ", uid='" + uid + '\'' +
                ", gid='" + gid + '\'' +
                ", ccontent='" + ccontent + '\'' +
                ", ctime=" + ctime +
                '}';
    }
}
